package cn.wolfcode.crm.util;

public abstract class StringUtil {
    //空字符串转换成null
    public static String empty2Null(String keyword){
      return hasLength(keyword)? keyword: null;
    }


    public static boolean hasLength(String data){
        if (data !=null &&!"".equals(data.trim())) {
            return  true;
        }
        return false;
    }

}
